#include<iostream>
#include<cstdlib>
#include<ctime> 
#define random(x) rand()%(x) 
using namespace std;

int main(){
	srand((int)time(0));
	cout<<10<<endl;
	for (int i=0;i<10;i++){
		cout<<random(100)<<" ";
	}
	cout<<endl<<100<<endl;
	for (int i=0;i<100;i++){
		cout<<random(100)<<" ";
	}
	cout<<endl<<1000<<endl;
	for (int i=0;i<1000;i++){
		cout<<random(100)<<" ";
	}		
}
